Power flow controlof a doubly fed induction generator (DFIG)