Mandelstam representation for potential scattering