Halogen bond-assisted self-assembly of gold nanoparticles in solution and on a planar surface