Numerical analysis for the optimal designs for thermal energy storage systems using phase change material (PCM)