An introduction to the Yang-Baxter equation