A constrained optimization approach to fit protein structure to x-ray solution scattering measurements