On the space of gauge orbits in gauge theories and gravitation