Modeling and Estimation of the Losses of a Multi-Level Inverter with Integrated Battery for Electric Vehicles