Attachment of inorganic nanoparticles onto carbon nanotubes