A real-time harmonic monitoring aimed at improving smart grid power quality