Probing the transition state with negative ion photodetachment: the chlorine atom + hydrogen chloride and bromine atom + hydrogen bromide reactions