Automatic oxidation threshold recognition of XAFS data using supervised machine learning