The numerical simulation for the prevision of the load carrying capacity of masonry structures