Transmission coefficient for excitations passing through a one-dimensional barrier described by the nonlinear Schrödinger equation