Hard x-ray radiation induced dissociation of N2 and O2 molecules and the formation of ionic nitrogen oxide phases under pressure