Though deadly quakes can’t be prevented, science does have some ways to protect buildings—and the people inside them