Predicting X-ray solution scattering from flexible macromolecules