HOW DOES A GRID CONNECTED INVERTER WORK