Simultaneous real-time tracking of wave packets evolving on two different potential curves in H{sub 2}{sup +} and D{sub 2}{sup +}