Black phosphorus unipolar transistor, memory, and photodetector | Synapse