Exact nonlinear frequency division multiplexing in lossy fibers