Resonance states of quantum dots with D0 centers in a magnetic field