“Transistor” metasurface