Multilayer Nanoreactors for Metallic and Semiconducting Particles