Estimating heat capacity and heat content of rocks