Deprotonation-Induced Phase Transitions in the Self-Assembled Structure of Prochiral Carboxyl Derivatives