Assessment of the seismic resistant capacities of traditional masonry buildings and retrofitting interventions to reduce their vulnerability