Calculation of arbitrary-order diffraction efficiencies of thick gratings with arbitrary grating shape* | Synapse