Thermodynamics of Nickel‐Cadmium and Nickel‐Hydrogen Batteries