Generalized braid groups and self-energy Feynman integrals