Functionalization of carbon nanotubes through the chemical binding of atoms and molecules