RRAM-Based Spiking Neural Network With Target-Modulated Spike-Timing-Dependent Plasticity