charging battery while connected to inverter