The onset of thermal convection in rotating spherical shells