An Approach to the Study of Masonry Structures: the Analysis of Cracking