Modelling in-plane behaviour of masonry shear walls through a predefined crack pattern at macro level