Text this: Towards a general subtraction formula for NNLO QCD corrections to processes at hadron colliders: final states with quarks and gluons