Calorimetric studies of reactions in thin films and multilayers