An Experimental Brain Implant Detects and Ends Pain in Real Time