Behaviour of impurity ions in a tokamak plasma