The Middle Triassic spans from 247 million to 237 million years ago. What continuing event ended in the Middle Triassic?