The discontinuity set of solutions of the TV denoising problem and some extensions