Interpreting total X-ray scattering data and lithium battery cycling curves using atomistic simulation and machine learning