Application of shape memory alloys in retrofitting of masonry and heritage structures based on their vulnerability revealed in the Bam 2003 earthquake