Control circuits for doubly fed generators