Thermal models for fire safety : calculation of flame spread on surfaces and heating of structures