Homogenization technique and damage model for old masonry material