Nanoparticles confer tailored optical properties on plastics