Cointegration and distance between differenced processes