In situ synthesis of polymer embedded silver nanoparticles via photopolymerization