Direct torque control of a doubly fed induction generator