Text this: Position sensorless and optimal torque control of reluctance and permanent magnet synchronous machines