Exact Solution of Quantum Optical Models by Algebraic Bethe Ansatz Methods