Adiabatic model of resonance two-photon self-focusing and defocusing of optical beams