Maximum energy density of battery energy storage