Iterative and accurate determination of small angle X-ray scattering background