Characterization of diffraction patterns directly from in-line holograms using the Gabor transform