Catalyst development and characterization through gas-phase nanoparticle synthesis, in situ X-ray absorption spectroscopy, and machine learning