Contact and non-contact photothermal calorimetry for investigation of condensed matter