Theory of frequency shifts in the oscillating cantilever-driven adiabatic reversals technique as a function of the spin location