The Hom–Yang–Baxter equation, Hom–Lie algebras, and quasi-triangular bialgebras