Towards assessing the violence of reaction during cookoff of confined energetic materials