Reproducing kernel technique for extracting accurate potentials from spectral data: Potential curves of the two lowest states X 1Σg+ and a 3Σu+ of the sodium dimer