Permanent magnet alternator