Shallow donor impurities in a quantum box