Complex interplay and hierarchy of interactions in two-dimensional supramolecular assemblies.