Application of As40S60−xSex layers for high-efficiency grating production