One factor that contributes to the damage and collapse of buildings during an earthquake is: