Text this: Harmonic Detection and Mitigation in Power Systems using Wavelet Packet Transform