Homotopy, monopoles and the 't Hooft tensor in QCD with generic gauge group