Challenges in the spectrochemical analysis of complex materials