Quantifying the effects of partially coherent wavefields in coherent diffractive imaging