Influence of Wetting Properties on Diffusion in a Confined Fluid