Mechanism and performance of ionic diodes fabricated from 2D trapezoidal-shaped nanochannels.