On grid solar inverter working principle