Assessment of errors in the newmark method in structural dynamics