Monte Carlo studies of attachment in HCl and HCl–N2 mixtures