Wise County doctor to give up license as part of plea agreement