Microgrid control and stability improvement using phasor measurement units (PMUs)