First-principles study of H2 adsorption on the pristine and oxidized (8,0) carbon nanotube