Lithium battery energy storage modeling