The transit to detonation in high explosives