Interference pigments comprising a layer with a concentration gradient or a gradient of the refractive index