As sea levels fell during Earth's geological past, inland seas and waterways vanished. In many cases, these left behind which type of rock formations?