Selective Compensation of Voltage Harmonics in a Grid-Connected Microgrid