An Optimization Method for Cooling System Design of Traction Motors