Crossover between the adiabatic and nonadiabatic electron transfer limits in the Landau-Zener model