Physics based modelling of tree fires and fires transitioning from the forest floor to the canopy