Production of cold barium monohalide ions