Drug implant controlled by smartphone could replace daily pills