Discrete Boltzmann model for implosion- and explosion-related compressible flow with spherical symmetry