Diazonium-based functionalization of carbon nanotubes: XPS and GC-MS analysis and mechanistic implications