A study of the inner-valence ionization region in HCl and DCl