Generalized eikonal of partially coherent beams and its use in quantitative imaging.