Multivalency in Heteroternary Complexes on Cucurbit[8]uril-Functionalized Surfaces: Self-assembly, Patterning, and Exchange Processes.