Intermolecular interactions in halogens: Bromine and iodine