Earthquakes are among the most formidable natural disasters, striking with little warning and causing widespread devastation.