Excited states in the radiation chemistry of gaseous diatomic hydrides