Magnet-controlled bioelectronic implant could relieve pain