Short-term plasticity and long-term potentiation mimicked in single inorganic synapses