Fireworks, explosives, spacecraft – Neil Withers explains why potassium chlorate is the sort of compound that draws attention to chemistry