Thermodynamics, structure and kinetics in the system Ga–O–N