A numerical investigation of a two-phase nanofluid flow with phase change materials in the thermal management of lithium batteries and use of machine learning in the optimization of the horizontal and vertical distances between batteries