Thermostating by deterministic scattering: heat and shear flow.