Temperature dependence of the exchange parameter and domain-wall properties