Text this: Design of brushless permanent-magnet motors