Integrated sorption–energy-dispersive X-ray fluorescence detection for automatic determination of lead and cadmium in low-concentration solutions