Using noise to probe recurrent neural network structure and prune synapses