The second virial coefficient from the scattering operator in classical mechanics