A quasi-sliding mode observer-based controller for PMSM drives