Non-linear analysis of unreinforced masonry buildings under horizontal loads