Optical application of poly(HEMA-co-MMA) containing silver nanoparticles and N,N-dimethylacrylamide