Rocking analysis of masonry walls interacting with roofs