Time-resolved temperatures of shocked and detonating energetic materials