Reduced dimensionality of liquid dynamics in confined geometries studied by nuclear magnetic deuteron relaxation