On-line stator resistance and permanent magnet flux linkage identification on open-end winding PMSM drives