Analog memristive synapse based on topotactic phase transition for high-performance neuromorphic computing and neural network pruning