Behavior of relativistic shock waves in nuclear matter