HOW DOES A GRID INVERTER WORK