Off-grid solar and backup power inverter/charger