which energy transformation takes place when a firecracker explodes

A. gravitational potential to mechanical and electromagnetic

B. nuclear to kinetic and chemical

C. mechanical to electromagnetic and eletrical

D. chemical to thermal and electromagnetic