Automation of one-loop QCD corrections