THE STRUCTURE OF ASSOCIATING FLUIDS RESTRICTED BY PERMEABLE WALLS : A DENSITY FUNCTIONAL APPROACH