Use an inverter to discharge lead-acid batteries