Magnetic properties of transition metal complexes