A new methodological approach to quality assurance of energy meters under nonsinusoidal conditions