Thermal properties in mesoscopics: physics and applications from thermometry to refrigeration