How Scientists Solved the Mystery of a 300-Year-Old Megaquake