permanent magnet generator