From trigonal bipyramidal to platonic solids: self-assembly and self-sorting study of terpyridine-based 3D architectures.