Non-linear analysis and collapse of masonry arches