Limit analysis of masonry walls using discontinuity layout optimization and homogenization. (5th October 2022)