Semi-conductor impurity and exciton levels in a magnetic field