X-ray study of the ordering of the alkali ions in the intercalation compounds NaxTiS2 and LixTiS2