Ancient tropical extinctions at high latitudes contributed to the latitudinal diversity gradient