Metal binding in proteins: Machine learning complements X-ray absorption spectroscopy