Optimal Design of Electrical Machines and Drives for HEV and EV