Damage detection from SAR imagery: application to the 2003 Algeria and 2007 Peru earthquakes