Text this: Multi-functional voltage and current based enhancement of power quality in grid-connected microgrids considering harmonics