Accelerator beam phase space tomography using machine learning to account for variations in beamline components | Synapse