Optical switching in hydrogenated amorphous silicon–sulfur alloy prepared by glow discharge