Seismic analysis of masonry buildings in historical city centres