After months of Russian attacks, Ukraine’s grid resumes electricity exports to EU. How did it survive?