Effect of metallic nanoparticles in thin foils for laser ion acceleration