Rapid thermal ignition of energetic materials by a spark-generated plasma and shock