Kinetics and mechanism of thermal decomposition of GaN