Density functional calculations of magnetic exchange interactions in polynuclear transition metal complexes