Sliding mode control of permanent magnet synchronous generators for wind turbines