Semi-braces and the Yang-Baxter equation