Seismic vulnerability assessment of historical masonry buildings