Spontaneous stratification of InGaN layers and its influence on optical properties