Optimized groove profiles for diffraction gratings obtained by an analytical method.