Real time elemental concentration analysis