Self-rectifying memristor crossbar arrays enabling energy-efficient multiply–accumulate for on/off-chip neuromorphic computing | Synapse