How to best charge an energy storage battery pack