Shock-wave onset with chemical dissociation by the discrete Boltzmann equation