Implantable device could save diabetes patients from dangerously low blood sugar