Authorities race to restore electricity across Spain and Portugal after one of the worst blackouts in years leaves millions in the dark