Controlling the Acidity of the Ammonium and Carboxylic Groups by a Ferrocene based redox System