Quantifying the effect of X-ray scattering for data generation in real-time defect detection