First in-flight synchrotron X-ray absorption and photoemission study of carbon soot nanoparticles