Coherent excitation of wavepackets in two electronic states. Interference effects at an avoided crossing.