Understanding and tailoring ligand interactions in the self-assembly of branched colloidal nanocrystals into planar superlattices