Preparation of carboxylic acids or their salts, halides or anhydrides by reaction with carbon monoxide on an oxygen-containing group in organic compounds, e.g. alcohols