Dissolution, characterization and photofunctionalization of carbon nanotubes