Quark-quark potentials from the inversion of baryon-spectra and its application to the Roper resonance