Construction of potentials from phase shift and binding energies of relativistic equations