Structure and electronic properties of InN and In-rich group III-nitride alloys