A Modular Approach to Powertrain Modeling and Shift Quality Analysis