In situ vulcanization synthesis of CuInS2 nanosheet arrays for a memristor with a high on–off ratio and low power consumption