Calorimetric measurement of two-photon absorption