Mass spectrometric sampling of ions from atmospheric pressure flames. IV. Scattering processes in molecular beams from supersonic expansions