NPC photovoltaic grid-connected inverter using proportional-resonant controller