Defect Modeling and Device Optimization in Chalcogenide Photovoltaics from First Principles to AI-assisted Design