Grid-tied PV inverter with galvanic isolation