Assessment of Masonry Structures Based on Analytical Damage Indices