Rain, winds help tame wildfires in Spain and Portugal