Effect of a perpendicular magnetic field on the shallow donor states near a semiconductor-metal interface