Potentiometric determination of the stability of BaCu2O2