A non-linear model for pushover and dynamic analysis of masonry buildings