Hydromagnetic shock structure in the presence of cosmic rays