An artificial nerve system gives prosthetic devices and robots a sense of touch