Surface magnetization near the critical temperature and the temperature dependence of magnetic-electron scattering from NiO