Text this: Online harmonic extraction and synchronization algorithm based control for unified power quality conditioner for microgrid systems