Energy storage fundamentals