Nonlinear Schrödinger equation in a semi-strip: Evolution of the Weyl–Titchmarsh function and recovery of the initial condition and rectangular matrix solutions from the boundary conditions