Gradient design of pore parameters on the melting process in a thermal energy storage unit filled with open-cell metal foam