Observation of inner-shell triplet states of CO2 and N2O and of inner-shell fine structure in Kr and Xe