Thermodynamic optimization of the thermal process in energy storage using multiple phase change materials