Excited states in benzalazine photochemistry