The thermal structure of cratonic lithosphere from global Rayleigh wave attenuation