Green photocatalytic synthesis of stable Au and Ag nanoparticles