An in situ XAS investigation of the kinetics of the ammonolysis of Ga(2)O(3) and the oxidation of GaN.