An adaptive multiscale strategy for the damage analysis of masonry modeled as a composite material