Advancing Carbon-Based Perovskite Solar Cells: Experimental Validation, Optimization, And Machine Learning Integration