A reconfigurable transistor and memory based on a two-dimensional heterostructure and photoinduced trapping - Nature Electronics