UNC, NC State each grab midweek wins