The Bethe ansatz for the six-vertex and XXZ models: An exposition