Generalized synthesis of hybrid metal-semiconductor nanostructures tunable from the visible to the infrared.