Energy levels of a two-dimensional hydrogenic donor in the presence of a constant magnetic field