Wetting and drying transitions at a fluid-wall interface: Density-functional theory versus computer simulation.