Potential and magnetic field confinement of shallow donor impurities in semiconductor quantum wells.