A non-isothermal model of a nickel–metal hydride cell