Mechanism of the quasi-elastic scattering based on the dinuclear system concept