An approximation result for free discontinuity functionals by means of non-local energies