Water desalination through rim functionalized carbon nanotubes