Exact solution of the Zakharov–Shabat scattering problem for doubly-truncated multisoliton potentials