Heat capacity and enthalpy of UO2 and gadolinia-doped UO2