Speed estimation and fault detection for PMSM via quasi sliding modes