The temperature dependence of the magnetization of magnetic multilayers