Recurrent spiking neural network with dynamic presynaptic currents based on backpropagation