Collapse mechanism analysis of historic masonry structures subjected to lateral loads: A comparison between continuous and discrete models