On the stability of slender rock blocks subjected to horizontal and vertical seismic accelerations