Preparation of carboxylic acid halides by conversion of carboxylic acids or their anhydrides {or esters, lactones, salts} into halides with the same carboxylic acid part