Emerging optoelectronic artificial synapses and memristors based on low-dimensional nanomaterials | Synapse