A finite element damage model for the evaluation and rehabilitation of brick masonry shear walls