In-plane behaviour of masonry walls: Numerical analysis and design formulations