Measuring and Modeling Execution Cost and Risk