Estimating the number of pure chemical components in a mixture by X-ray absorption spectroscopy.