Electronic effects on photochemistry: the diverse reaction dynamics of highly excited stilbenes and azobenzene.