Newmark method to calculate structural response