Applied control of electrical drives : Real time embedded and sensorless control using VisSim™ and PLECS™.