Scattering data computation for the Zakharov–Shabat system with non-smooth potentials