Temperature-dependent and optimized thermal emission by spheres