C2 creation, emission, and laser-induced fluorescence in flames and cold gases