Memristive phase switching in two-dimensional 1T-TaS 2 crystals | Synapse