Measurement of the full complex degree of coherence using Fresnel diffraction from a phase discontinuity.