Confined water inside single-walled carbon nanotubes: Global phase diagram and effect of finite length | Synapse