Low-power analog architecture for brain-machine interfaces