Clean nanotube functionalization