Massey Products on Cycles of Projective Lines and Trigonometric Solutions of the Yang–Baxter Equations