This idea is a mistake, because the basic recipe should always be to create a cell where all interfaces are thermodynamically well defined and the Nernst equation can be obeyed. In terms of solid state physics: Fermi levels of
charged species should be able to become equal throughout the whole system.