Exchange constants in orthoferrites YFeO3 AND LuFeO3