When an earthquake struck California's Bay Area, the MyShake app alerted users. An expert explains its function and safety tips.