Ultraviolet photodissociation of HCl in selected rovibrational states: experiment and theory