Impact of discretization and boundary conditions in nonlinear frequency-division multiplexing