Automated elemental analysis using energy dispersive X-ray fluorescence analysis