Nuclear Tuning and Detuning of the Electron Spin Resonance in a Quantum Dot: Theoretical Consideration