How energy storage systems can improve battery capacity