Earthquake-warning systems save lives by detecting the first signs of shaking.