Actively tunable terahertz coding metasurfaces