Dynamic Phasor Based Analysis and Control in Renewable Energy Integration