On the geometrical structure of shock waves in general relativity