Adsorption of water vapor on ionic crystals