Impurity states in high magnetic fields