Spatial variation in direct and indirect effects of climate and productivity on species richness of terrestrial tetrapods