The principal chiral field in two dimensions on classical lie algebras: The Bethe-ansatz solution and factorized theory of scattering