Heat transfer effects in polymer flame retardancy