Reconstruction of material losses by perimeter penalization and phase-field methods