Modeling of reinforced masonry elements