Role of surface chemistry in hydrogen adsorption in single-wall carbon nanotubes