Losses in Electrical Machines