Method for the esterification of carboxylic acids in gas chromatographic analysis