FNFT: A software library for computing nonlinear Fourier transforms