Dynamic Phasor and Frequency Measurements by an Improved Taylor Weighted Least Squares Algorithm