First, second and third order blazes of diffraction gratings