Ancient tropical extinctions contributed to the latitudinal diversity gradient