Compositional inhomogeneity and immiscibility of a GaInN ternary alloy