Seismic assessment of rocking masonry structures