Russian attacks on energy infrastructure have plunged much of Ukraine into darkness and cold but haven’t broken its resilience.