Effect of chain length on orientational order of a series of short-chain carboxylic acids dissolved in a nematic liquid crystal