Numerical techniques for Fresnel diffraction in computational holography