Cosmological Structure Formation Shocks and Cosmic Rays in Hydrodynamical Simulations