Chemistry and Mechanics in Fireworks