Electromagnetics for Electrical Machines