Anion-responsive tunable bulk-phase homochirality and luminescence of a cationic framework.