The Principles of Electromagnetism: Applied to Electric Machines