On the construction of trigonometric solutions of the Yang-Baxter equation