Nonequilibrium transport in quantum impurity models: the Bethe ansatz for open systems.