The friction in out-of-plane failure mechanisms of masonry walls