Inverse scattering transform and soliton solutions for a square matrix nonlinear Schrödinger equation with nonzero boundary conditions