Electrical Power Systems Quality: Waveform Distortion Estimation