Sustainable Energy Solutions: Enhancing the Efficacy and Stability of Lead Iodide Perovskite Solar Cells