Simulation of recoil trajectories in gas-filled magnetic separators