Determinants and dynamics of the global distribution of the savanna and forest biomes