Fast and sensitive visible–infrared detection using Bi2O2Se/WS2 heterostructure | Synapse