MiSO: Optimizing brain stimulation to create neural population activity states