Forests in Spain and France have been parched by successive heatwaves since May that have brought drought to many areas.