Extraction of ions from a flame