Investigation of defect equilibria in YBa2Cu3Ox by a solid state electrochemical method