Nearest-neighbour nanocrystal bonding dictates framework stability or collapse in colloidal nanocrystal frameworks