Transistor functions based on electrochemical rectification.