The scattering phase shifts in the sine-Gordon and sinh-Gordon field theories☆