From the kinetic theory of gases to continuum mechanics