UNDERSTANDING PURE SINE WAVE INVERTER FUNCTION