Soft implant monitors brain and gut chemistry