Elucidation of Synthetic Mechanism of Various Metal Nanoparticles through Unidirectional Diffusion in a Gel