Inverse scattering method for square matrix nonlinear Schrödinger equation under nonvanishing boundary conditions