Generating QCD amplitudes in the color-flow basis with MadGraph