Understanding the solvent polarity effects on surfactant-capped nanoparticles.