Discrete-time variable structure control of permanent-magnet synchronous motors