Hydrogen bond dynamics and microscopic structure of confined water inside carbon nanotubes.