Sliding mode control of active and reactive powers generated by a doubly-fed induction generator (DFIG)