Avoided crossing of molecular excited states and photochemistry: butadiene and unprotonated Schiff base.