Thought-controlled prosthesis