He I (584 Å) photoelectron spectra and photoionization cross sections of atomic chlorine and bromine