Hybrid chip enables two-way conversion between terahertz and optical signals for ultrafast communications