Rehabilitation of brick masonry