Investigation of negative ion states in HCl and HF by configuration interaction methods