Analyzing Power Quality and Harmonic Distortion