A cyber attack on Ukraine's power grid leaves thousands of people in the dark as a military conflict involving Russia rages in the east.