A model of the nerve action potential