Double active control of the plasmonic resonance of a gold nanoparticle array