Dynamic characterization of a system with degradation: A masonry wall