Damage models for the seismic response of brick masonry shear walls. Part II: the continuum model and its applications