Two-loop renormalization group equations in a general quantum field theory