SIMULATION AND IMPLEMENTATION OF GRID CONNECTED INVERTERS