Damage detection in materials based on strain measurements