Condensation-evaporation cycles in pore and capillary systems according to the Kelvin model