Transient spectroscopic method and apparatus for in-process analysis of molten metal