Speciation of Nanocatalysts Using X-ray Absorption Spectroscopy Assisted by Machine Learning