Comparative study of spark-optical emission spectroscopy and x-ray fluorescence spectroscopy for quantitative analysis of ferrous and non-ferrous alloys