Rocking of slender blocks under seismic excitation