Self-assembly of nanostructured polymetallaynes