Application of nanoparticles in polymeric foams