Deprotonation Processes of Ellagic Acid in Solution and Solid States