Reduction of carboxylic acids