Permanent magnet generator for direct drive wind turbines