Phase behaviour of a Lennard-Jones fluid in a pore with permeable walls of a finite thickness: a density functional approach