Simulation of small-angle X-ray scattering data of biological macromolecules in solution