Microstructure and electronic properties of InGaN alloys