An Introduction to Electrical Machines and Transformers