Characterizing response to patterned electrical stimulation to improve neuromodulation therapies