Optimizing the neural response to electrical stimulation and exploring new applications of neurostimulation