On the speed of uniform convergence in Mercer's theorem