Gravar-mail: Closed-Loop neuromodulation for clustering neuronal populations