Nested Newmark model to calculate the post-earthquake profile of slopes