HOW DOES A SOLAR INVERTER CHARGE A BATTERY