Pollutants transformation by metal nanoparticles in confined nanospaces