Solidification enhancement of phase change materials using nanoparticles and metal foams with nonuniform porosity