Magnetic control of flame stability: Application to oxygen-enriched and carbon dioxide-diluted sooting flames