Templated synthesis of single-walled carbon nanotube and metal nanoparticle assemblies in solution.