The Direct Scattering Problem for theZakharov–Shabat System