Block random rocking and seismic vulnerability estimation