Latent heat thermal storage with variable porosity metal matrix: A numerical study