what is the general formula of carboxylic acid