Simulation of battery systems[electronic resource] :fundamentals and applications