Performance-based approach to earthquake protection of masonry cultural heritage