Diffraction Efficiency of Hologram Gratings with Modulation Changing through the Thickness