Achieving High Efficiency in Ag-Based Perovskite Solar Cells via Defect Density and Layer Thickness Optimization