Spain, Portugal battle widespread wildfires