The chemistry of atmospheric bromine