Macroscopic and Мicroscopic Simulation of Processes of the Interaction of Water Vapor and Slit-like Pores