Advanced technology for functionalization of carbon nanotubes