Action potential and chaos near the edge of chaos in memristive circuits.