Analogy between the stimulus-response characteristics of neuronal and electrochemical cells