Characterisation of molecular nitrogen in ion-bombarded compound semiconductors by synchrotron-based absorption and emission spectroscopies