Seismic upgrading of masonry structures by tying systems: design approach and numerical validation