Dual step irradiation process for in situ generation and patterning of silver nanoparticles in a photocured film