Investigation and Analysis of Damage to Buildings during the 2003 Bam Earthquake