Optical properties of sliced multilayer gratings