Transmission and reflection bi-direction terahertz encoding metasurface with a single structure.