Modeling of Adsorption in Finite Cylindrical Pores by Means of Density Functional Theory