Conditions for irreversible acid-base reactions