A third order model for the doubly-fed induction machine