principles of electrical machine and design