Design of Rotating Electrical Machines