Spain and Portugal hit by widespread power blackouts