Model for partial coherence and wavefront curvature in grating interferometers