Polarity-dependent memory switching and behavior of Ag dendrite in Ag-photodoped amorphous As2S3 films | Synapse