HOW IS AN INVERTER CONNECTED TO A GRID