Analysis of mine waters using X-ray fluorescence spectrometry