Masonry’s resistance and resilience to earthquakes