Exchange interactions of transition-metal ions in in orbitally degenerated excited states