Determination of residual load-bearing capacity of existing masonry structures