pH-modulation crystallization