Efficient algorithms for dynamic aperture and momentum acceptance calculation in synchrotron light sources | Synapse