Towards a miniaturized brain-machine-spinal cord interface (BMSI) for restoration of function after spinal cord injury