Design of Brushless Permanent-Magnet Machines