Versatile surface plasmon resonance of carbon-dot-supported silver nanoparticles in polymer optoelectronic devices