Advanced models for the limit analysis of masonry structures