The influence of accidental torsion on the inelastic dynamic response of buildings during earthquakes