Level-set approaches of L2-type for recovering shape and contrast in ill-posed problems