Theory of magnetism close to the 5T2 — 1A1 crossover in iron(II) complexes