Spain and Portugal focus on cause of huge blackout with power almost fully restored