Efficiency and Stability Analysis of 2D/3D Perovskite Solar Cells Using Machine Learning