The pyrolysis and ignition of charring materials under an external heat flux