Optimal probes for global quantum thermometry