Delivering biochemicals with precision using bioelectronic devices enhanced with feedback control