How to Make Buildings Earthquake-Resilient: A Control Theory Perspective