Analytical evaluation of the time evolution of a nonadiabatic nonlinear quantum dimer under the averaging approximation