On matrix equations appearing when solving wave scattering problems for planar waveguide structures with rectangular region of interaction