A High-Efficiency Neural Processing SoC for Adaptive Closed-Loop Neuromodulation