Tailored single-walled carbon nanotube--CdS nanoparticle hybrids for tunable optoelectronic devices.