Limit analysis for three-dimensional stone masonry structures with friction