Obtaining the excited-state potential by inversion of photodissociation absorption spectra