Homogenization approach for the evaluation of crack patterns induced by foundation settlement on an old masonry building