The Hopf algebraic structure of perturbative quantum gauge theories