Density correlations in lattice gases in contact with a confining wall Article uri icon