Production of carboxylic acids from vicinal diols