On the determination of a potential from three spectra