Reconstruction of a defect in an open waveguide