Optical attenuation of plasmonic nanocomposites within photonic devices.