Jahn—Teller effects on the superexchange interactions in LaMnO3