TWISTED QUANTUM AFFINE ALGEBRAS AND SOLUTIONS TO THE YANG-BAXTER EQUATION