Solar charging off-grid inverter principle