Thermodynamics of the hydrogen-nickel system