Model based design of a sensorless control scheme for permanent magnet motors using signal injection