Text this: On a Level-Set Method for Ill-Posed Problems with Piecewise Nonconstant Coefficients