Text this: Design of permanent magnet machines for sensorless control