Off grid pure sine wave inverter