Sensor and sensorless speed control of permanent magnet synchronous motor using extended high-gain observer