Permanent Magnet Motors and Generators