Hybrid and permanent magnet motors