Thermodynamic analysis of unsteady cavitation dynamics in liquid hydrogen