Micromechanical analysis of reinforced masonry