A micromechanical damage model for complex masonry structures