Formulation of the Boltzmann equation in terms of scattering matrices