A numerical model for masonry walls with multiple leaf internal structure