Improved dynamic stability using FACTS devices with phasor measurement feedback