Matched coordinates for the analysis of 1D gratings.