Implement a macroelement to simulate the ground displacement and its adverse effects on building foundations and subsequently the superstructure