HOW A GRID CONNECTED INVERTER WORKS