Multiscale analysis of in-plane masonry walls accounting for degradation and frictional effects