Multi-scale analysis of masonry structures