Simulation and control of floor motions in structures