A Fully Implantable Closed-Loop System For Autonomous Opioid Detection And Treatment