Theory of time-resolved level anticrossing experiment