Continuous-wave terahertz system with electro-optical terahertz phase control