Kinetic Simulations of Cosmic-Ray-modified Shocks. I. Hydrodynamics