Modified sine wave inverters for off-grid use