Critical energy barrier for capillary condensation in mesopores: Hysteresis and reversibility.