The critical condition for thermal explosion in an isoperibolic system