Evolution and driving mechanisms of water circulation during the late Paleozoic to early Mesozoic