The thermodynamics of the hydrogen-iron system