Nanoscale resistive switching memory devices: a review | Synapse