Detector combining a flame ionization and a thermionic detection system into a single unit