The extreme function theory for damage detection: An application to civil and aerospace structures