A layer or the substrate forming a grating