Dichroic switching of core–shell plasmonic nanoparticles on reflective surfaces