Extra-atomic relaxation in HCl, ClF, and Cl2 from x-ray photoelectron spectroscopy