Configuring the energy management of battery systems