Pattern-Based Discrimination of Carboxylate Anions in Aqueous Media and on Solid Supports