Thermal degradation of optical resonances in plasmonic nanoparticles.