Non local approximation of free discontinuity functionals with linear growth: the one-dimensional case