Analysis of the stability of masonry-faced earth retaining walls