Wildfires ravage France, Spain as residents flee from burning homes