Dynamics and density profile of water in nanotubes as one-dimensional fluid.