Principles of the theory of adsorption of large molecules in pores with nonuniform walls