How Buildings of Different Heights can be Affected by Earthquakes