Determination of an infinite non-self-adjoint Jacobi matrix from its generalized spectral function