On the work function of the gas-exposed electrode surfaces in solid state electrolyte cells