Mechanism of photoinduced changes in the structure and optical properties of amorphous As2S3.