Sorption on deformable solids. Density functional theory approach.