Active and Reactive Power Control of a DFIG For Variable Speed Wind Energy Conversion