Quantum Simulation of Batteries