Mesoscopic modeling of failure and damage-induced anisotropy in brick masonry