On-Line Digital Measurement for the Quality Analysis of Power Systems Under Non-Sinusoidal Conditions