The one-loop amplitude for six-gluon scattering