Functional integral calculation of local magnetic moments at Ta impurities embedded in XFe2 (X = Gd, Yb) compounds : Temperature dependence