A Modular High-speed DSP-based Data Acquisition Apparatus for On-line Quality Analysis on Power Systems Under Non-Sinusoidal Conditions