Disentangling Middle Paleozoic sea level and tectonic events in cratonic margins and cratonic basins of North America