Calculation of rate constants for dissociative attachment of low-energy electrons to hydrogen halides HCl, HBr, and HI and their deuterated analogs