Can you charge a battery while using an inverter