Application of spectral technology in flame measurement