The effect of metallic impurities and temperature on the anisotropy of the surface free energy of solid metals