The i-motor: a system for end-of-line testing of electric drives for vehicles