On the construction of a Jacobi matrix from spectral data