Energetic Effect of the Carboxylic Acid Functional Group in Indole Derivatives.