Impact of Hydrogen and Halogen Bonding Interactions on the Packing and Ionicity of Charge-Transfer Cocrystals