Digital signal processing algorithms for power and line parameter measurements with low sensitivity to frequency change