Flow pattern of accelerated cometary ions inside and outside the diamagnetic cavity of comet 67P/Churyumov-Gerasimenko