Damage models for the seismic analysis of masonry structures