How the Permian period ended?