Heterogeneous recombination of atomic bromine and fluorine