How to charge lithium battery energy storage