adapting constants in nernst test