Cross linking of thiolated carbon nanotubes: An ab initio study