Analysis of the heat capacity dependence of protein folding