Bound electronic states of HCl