Comparison between the seismic response of 2D and 3D models of rigid blocks