Linear algorithms for phase retrieval in the Fresnel region. 2. Partially coherent illumination