Thermodynamics of hydrogen absorption and desorption in TC21 alloy