Coherent density gradients in water compressed by a modulated shock wave