A phase processor used in terahertz interferometer for tokamak