A regularized non-smooth contact dynamics approach for architectural masonry structures