Characterization of non-uniform InGaN alloys: spatial localization of carriers and optical properties