Anion coordination under halogen bonding control