Effective ab initio exchange integrals and magnetic phase transition in fcc Fe and Mn antiferromagnets