Signal recovery via TV-type energies