Controlling the assembly of CdS nanorods via solvent and acidity.