Elimination of optical scattering defects in AgGaS2 and AgGaSe2