Visualization of the spatial–temporal evolution of continuous electromagnetic waves in the terahertz range based on photonics technology