Corticospinal neuroprostheses to restore locomotion after spinal cord injury