Electricity returning after major power outage in parts of Spain and Portugal halts travel and communications