Electrochromic response and control of plasmonic metal nanoparticles.