Density-functional thermochemistry. V. Systematic optimization of exchange-correlation functionals