Theoretical description of the role of halides, silver, and surfactants on the structure of gold nanorods.