A DFT study of H2 adsorption on functionalized carbon nanotubes