Analogy Between Thermal, Mechanical, and Electrical Energy Storage Systems