Spontaneous lateral modulation in short-period superlattices investigated by grazing-incidence X-ray diffraction