The topology of transit orbits in multibody systems with applications to dynamical astronomy and mission design