Lufkin man agrees to six years in prison for stalking