Parametric optimization of multilevel diffractive optical elements by electromagnetic theory.