Digital holography as part of diffractive optics