Ion trajectories in atom probe field ion microscopy and gas field ion sources