Molecular dynamics simulation of carbon dioxide in single-walled carbon nanotubes in the presence of water: structure and diffusion studies