On the definition of the generalized scattering matrix of a lossless multiport