Attenuated thick hologram gratings. Part I: Diffraction efficiency