A multiscale approach for the analysis of block masonry under damage and friction