Relaxation of free-discontinuity energies with obstacles,