Electronic structure of the negative ion of HCl