Rosen–Zener model in cold molecule formation