Post-detection analysis for grating-based ultra-small angle X-ray scattering