A new approach to digital measurement of power system frequency