Approximate solution of the nonstationary problem of thermal explosion in the presence of a warmup stage