Brittle-ductile response of in-plane loaded brick masonry walls