Multilevel analysis for the identification of damage due to foundation settlements