Theory of covalent heterodinuclear magnetic exchange interaction and its application to MnIIIFeIII and FeIIFeII spin clusters in complex molecules