Photoelectronic process of photodoping in the Ag/As-S system