Thermal analysis of the water uptake by hydrocolloids