Effects of fire and CO2 on biogeography and primary production in glacial and modern climates